package com.wmlt.service;

import com.wmlt.entity.Article;
import com.wmlt.entity.User;

import java.util.List;

public interface ArticleService {
    public List<Article> getAllArticle();//查询所有文章
    public int deleteArticle(String[] articleId);//删除文章，根据文章id删除
    public List<Article> queryArticle(String articleTitle);//查询文章，根据文章标题模糊查询
    public List<Article> getToObtain();//获取文章列表
    public int addArticle(Article article);//添加文章
    public int reviewArticle(int[] articleId);//审核文章
    public List<Article> getTypeLook();//根据标题类型查询文章
    public List<Article> getTheArticleByType(); //根据类型获取文章列表并且展示
    public List<Article> getArticlesAccordingToProgram();//根据程序人生获取文章列表
    public Article queryArticleByArticleId( int articleId );
    public List<Article> getArticleListByUserId(String userId);
    public int increaseArticleReading (String articleId,int number);//增加文章阅读量
}
